<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title>引入bootstrap表单美化</title>
    <link rel="stylesheet" type="text/css" href="./resource/jqtransform/jqtransform.css" />

    <script type="text/javascript" src="./resource/jquery/jquery.min.1.7.2.js"></script>
    <script type="text/javascript" src="./resource/jqtransform/jquery.jqtransform.js"></script>
    <script type="text/javascript" src="./plugins/create_form/tpl/js/form_component.js"></script>
</head>
<body>
<div class="container">
    <div id="example">
    </div>
</div>

<script>
    (function(){
        var obj=JSON.parse('{{data}}');

        var formCom=new FormCom();
        var form= formCom.loadData(obj);
        $('#example').html(form).find('form').jqTransform();
    })();

</script>
</body>
</html>